package com.lgy.ms.api.business;

import com.github.pagehelper.PageInfo;
import com.lgy.ms.core.bean.RequestParams;
import com.lgy.ms.core.bean.ResponseParams;
import com.lgy.ms.core.dto.FileDTO;
import com.lgy.ms.core.exception.BusinessException;

import java.util.Map;

public interface IAppFileService {

    /**
     * 新增文件
     */
    ResponseParams<Object> add(RequestParams requestParams) throws BusinessException;
    /**
     * 修改文件
     */
    ResponseParams<Object> edit(RequestParams requestParams) throws BusinessException;
    /**
     * 删除文件
     */
    ResponseParams<Object> delete(RequestParams requestParams) throws BusinessException;
    /**
     * 分页查询文件
     */
    ResponseParams<Object> queryByPage(RequestParams requestParams) throws BusinessException;
    /**
     * 下载工程所有文件--zip
     */
    ResponseParams<Object> zipByProject(RequestParams requestParams) throws BusinessException;
    /**
     * 下载选定多文件--zip
     */
    ResponseParams<Object> zipBySelect(RequestParams requestParams) throws BusinessException;

    /**
     * controller分页
     */
    PageInfo<FileDTO> getFileList(Map<String, Object> reqMap);
}
